package com.yzjs.wx.request;




import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(
        name = "xml",
        strict = false
)
public class WxDownloadBillRequest {
    @Element(
            name = "appid"
    )
    private String appid;
    @Element(
            name = "mch_id"
    )
    private String mchId;
    @Element(
            name = "nonce_str"
    )
    private String nonceStr;
    @Element(
            name = "sign"
    )
    private String sign;
    @Element(
            name = "bill_date"
    )
    private String billDate;
    @Element(
            name = "bill_type",
            required = false
    )
    private String billType = "ALL";

    public WxDownloadBillRequest() {
    }

    public String getAppid() {
        return this.appid;
    }

    public String getMchId() {
        return this.mchId;
    }

    public String getNonceStr() {
        return this.nonceStr;
    }

    public String getSign() {
        return this.sign;
    }

    public String getBillDate() {
        return this.billDate;
    }

    public String getBillType() {
        return this.billType;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setBillDate(String billDate) {
        this.billDate = billDate;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WxDownloadBillRequest)) {
            return false;
        } else {
            WxDownloadBillRequest other = (WxDownloadBillRequest)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$appid = this.getAppid();
                Object other$appid = other.getAppid();
                if (this$appid == null) {
                    if (other$appid != null) {
                        return false;
                    }
                } else if (!this$appid.equals(other$appid)) {
                    return false;
                }

                Object this$mchId = this.getMchId();
                Object other$mchId = other.getMchId();
                if (this$mchId == null) {
                    if (other$mchId != null) {
                        return false;
                    }
                } else if (!this$mchId.equals(other$mchId)) {
                    return false;
                }

                Object this$nonceStr = this.getNonceStr();
                Object other$nonceStr = other.getNonceStr();
                if (this$nonceStr == null) {
                    if (other$nonceStr != null) {
                        return false;
                    }
                } else if (!this$nonceStr.equals(other$nonceStr)) {
                    return false;
                }

                label62: {
                    Object this$sign = this.getSign();
                    Object other$sign = other.getSign();
                    if (this$sign == null) {
                        if (other$sign == null) {
                            break label62;
                        }
                    } else if (this$sign.equals(other$sign)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$billDate = this.getBillDate();
                    Object other$billDate = other.getBillDate();
                    if (this$billDate == null) {
                        if (other$billDate == null) {
                            break label55;
                        }
                    } else if (this$billDate.equals(other$billDate)) {
                        break label55;
                    }

                    return false;
                }

                Object this$billType = this.getBillType();
                Object other$billType = other.getBillType();
                if (this$billType == null) {
                    if (other$billType != null) {
                        return false;
                    }
                } else if (!this$billType.equals(other$billType)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxDownloadBillRequest;
    }



    public String toString() {
        return "WxDownloadBillRequest(appid=" + this.getAppid() + ", mchId=" + this.getMchId() + ", nonceStr=" + this.getNonceStr() + ", sign=" + this.getSign() + ", billDate=" + this.getBillDate() + ", billType=" + this.getBillType() + ")";
    }
}

